<template>
  <el-form :model="model" ref="form">
    <el-form-item
      label="手机号码"
      prop="phone"
      :rules="[
        { required: true, message: '请输入用户名称', trigger: 'blur' },
        {
          pattern: /^1[345789]\d{9}$/g,
          message: '请填写正确的手机号码',
          trigger: 'blur'
        }
      ]"
    >
      <el-input
        v-model="model.phone"
        :maxlength="11"
        placeholder="请输入手机号码"
      ></el-input>
    </el-form-item>
  </el-form>
</template>
